/**
 * User model
 */
var User = function(sequelize, DataTypes) {
	return sequelize.define("User", {
		name: DataTypes.STRING,
		
		firstName: DataTypes.STRING,
		
		login: {
			type: DataTypes.STRING, 
			unique:true
		},
		
		password: DataTypes.STRING,
		
		email:{
			type: DataTypes.STRING,
			validate: {
				isEmail:true
			}
		}
	});
};


module.exports = User;